class TemplateUtil{
    constructor(){

    }
    async getTemplate(path) {
        let template;
        await fetch(path)
            .then(response => response.text())
            .then(data => {
                const parser = new DOMParser();
                const doc = parser.parseFromString(data, 'text/html');
                template = doc.getElementsByTagName('template').content;
        });
        return template;
    }
}
